package com.sunriz.motordrive.controller.photoThermal.hc;

import com.sunriz.motordrive.domain.DTO.Result;
import com.sunriz.motordrive.server.photoThermal.PhotoThermalHc;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * ClassName: HcTimedQueryController
 * Package: com.sunriz.motordrive.controller.hc
 * Description:
 *
 * @Author BuTang
 * @Create 2024/5/22 16:10
 * @Version 1.0
 */
@Slf4j
@RestController
@RequestMapping("/photoThermal/hc/timed")
public class PhotoThermalHcController {


    @Resource
    PhotoThermalHc photoThermalHc;


    @GetMapping("/getRead")
    public Result getOnlyReadData(){
        return photoThermalHc.getOnlyReadData();
    }

    @GetMapping("/getReadAndWrite")
    public Result getReadAndWrite(){
        return photoThermalHc.getReadAndWrite();
    }
}
